#include "saveevent.h"

using namespace gui;

QEvent::Type SaveEvent::customEventType = QEvent::None;

SaveEvent::SaveEvent() : QEvent(SaveEvent::type())
{
    setAccepted(false);
}

SaveEvent::~SaveEvent()
{

}

QEvent::Type SaveEvent::type()
{
    if (customEventType == QEvent::None)
    {
        int generatedType = QEvent::registerEventType();
        customEventType = static_cast<QEvent::Type>(generatedType);
    }
    return customEventType;
}
